From: Florian Müllner Date: Wed, 7 Aug 2019 00:26:32 +0000 (+0200) Subject: environment: Fix transition callback X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b368d010;p=gnome-shell.git environment: Fix transition callback This is rather embarrassing - we currently confuse the transition with the finished parameter, which means we always run the onComplete handler no matter whether the transition was interrupted or actually completed. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/668 --- diff --git a/js/ui/environment.js b/js/ui/environment.js index b00b74dd9..a248ea069 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -64,7 +64,7 @@ function _trackTransition(transition, callback) { if (_easingTransitions.has(transition)) transition.disconnect(_easingTransitions.get(transition)); - let id = transition.connect('stopped', isFinished => { + let id = transition.connect('stopped', (t, isFinished) => { _easingTransitions.delete(transition); callback(isFinished); });